package proiect.fis.persistence;

import java.util.List;
import javax.persistence.EntityManagerFactory;
import proiect.fis.commons.beans.Persoana;

/**
 *
 * @author Boogie
 */
class PersoanaDao extends DaoImpl<Persoana, Long> {

    public PersoanaDao(EntityManagerFactory emf) {
        super(Persoana.class, emf);
    }

    @Override
    public List<Persoana> loadAll() {
        return em.createNamedQuery("Persoana.findAll").getResultList();
    }
}
